using System;

namespace GraphSpace
{
	public class Kante
	{		
		private int von, nach;
		private Knoten vvon, vnach;
		private double gewicht;
		
		public Kante ()
		{
			this.von = 0;
			this.vvon = null;
			this.nach = 0;
			this.vnach = null;
			this.gewicht = 0.0;
		}		
		
		public Kante (Knoten von, Knoten nach, double gewicht)
		{
			this.von = von.Id;
			this.vvon = von;
			this.nach = nach.Id;
			this.vnach = nach;
			this.gewicht = gewicht;
		}
		
		public void init (Knoten von, Knoten nach, double gewicht)
		{
			this.von = von.Id;
			this.vvon = von;
			this.nach = nach.Id;
			this.vnach = nach;
			this.gewicht = gewicht;
		}
		
		public int Von
		{
			get{return this.von;}
			set{this.von = value;}
		}
		public Knoten Vvon
		{
			get{return this.vvon;}
			set{this.vvon = value;}
		}
		public int Nach
		{
			get{return this.nach;}
			set{this.nach = value;}
		}
		public Knoten Vnach
		{
			get{return this.vnach;}
			set{this.vnach = value;}
		}
		public double Gewicht
		{
			get{return this.gewicht;}
			set{this.gewicht = value;}
		}
	}
}
